package com.community.dao;

import com.community.pojo.QuestionBrowseRecord;

import java.util.Map;

public interface QuestionBrowseRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(QuestionBrowseRecord record);

    int insertSelective(QuestionBrowseRecord record);

    QuestionBrowseRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(QuestionBrowseRecord record);

    int updateByPrimaryKey(QuestionBrowseRecord record);

    /**
     * 查询问题浏览数
     * @param questionId
     * @return
     */
    int selectByQuestionId(int questionId);

    /**
     * 统计用户/IP是浏览问题记录
     * @param paramMap
     * @return
     */
    int countNumByParam(Map paramMap);
}